package com.ssy.lingxi.member.merchant.model.vo.maintenance.response;

import com.ssy.lingxi.member.merchant.model.vo.basic.response.AuthTreeButtonVO;

import java.io.Serializable;
import java.util.List;

/**
 * 角色权限，以树形菜单的形式返回
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-29
 */
public class MemberAbilityAuthTreeMenuVO implements Serializable {
    private static final long serialVersionUID = -8332328425150430352L;

    /**
     * 权限菜单的id
     */
    private Long id;

    /**
     * 权限名称
     */
    private String title;

    /**
     * 菜单关联的按钮列表
     */
    private List<AuthTreeButtonVO> buttons;

    /**
     * 勾选的按钮Id列表
     */
    private List<Long> buttonIds;

    /**
     * 是否具有数据权限：0-否，1-是
     */
    private Integer hasDataAuth;

    /**
     * 关联的组织机构Id列表
     */
    private List<Long> orgIds;

    /**
     * 子节点
     */
    private List<MemberAbilityAuthTreeMenuVO> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<AuthTreeButtonVO> getButtons() {
        return buttons;
    }

    public void setButtons(List<AuthTreeButtonVO> buttons) {
        this.buttons = buttons;
    }

    public List<Long> getButtonIds() {
        return buttonIds;
    }

    public void setButtonIds(List<Long> buttonIds) {
        this.buttonIds = buttonIds;
    }

    public Integer getHasDataAuth() {
        return hasDataAuth;
    }

    public void setHasDataAuth(Integer hasDataAuth) {
        this.hasDataAuth = hasDataAuth;
    }

    public List<Long> getOrgIds() {
        return orgIds;
    }

    public void setOrgIds(List<Long> orgIds) {
        this.orgIds = orgIds;
    }

    public List<MemberAbilityAuthTreeMenuVO> getChildren() {
        return children;
    }

    public void setChildren(List<MemberAbilityAuthTreeMenuVO> children) {
        this.children = children;
    }
}
